﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace temaIp
{
    class CarSedan : AbstractCar
    {
        private static CarSedan _instance;
        private string addons, motto, dim; 
        protected CarSedan() { }

        public override void setType()
        {
            type = "Sedan";
        }
        public override void show()
        {
            System.Console.WriteLine("Numele masinii este: ");
            System.Console.WriteLine(name);
            System.Console.WriteLine("Dotarile ei sunt: ");
            System.Console.WriteLine(addons);
            System.Console.WriteLine("Motorizarea: ");
            System.Console.WriteLine(motto);
            System.Console.WriteLine("Dimensiunile: ");
            System.Console.WriteLine(dim);
            System.Console.WriteLine("Transmisiunea: ");
            System.Console.WriteLine(transmission);
            System.Console.WriteLine("Culoarea: ");
            System.Console.WriteLine(colour);
            System.Console.WriteLine("Tipul este: ");
            System.Console.WriteLine(type);
        }
        public override void setAddons(string addons1)
        {
            addons = addons1;
        }
        public override void setDim(string dim1)
        {
            dim = dim1;
        }
        public override void setMotto(string motto1)
        {
            motto = motto1;
        }
        public override void setName(string name1)
        {
            name = name1;   
        }
        public static CarSedan Instance()
        {
            if (_instance == null)
            {
                _instance = new CarSedan();
            }

            return _instance;
        }
    }
}
